import * as PIXI from "pixi.js";
import { App } from "../system/App";

export class TimerTxt extends PIXI.Text {
  constructor() {
    super();
    this.x = 40;
    this.y = 13;
    this.anchor.set(App.config.timer.anchor);
    this.style = App.config.timer.style;

    this.renderTimer();
  }


  renderTimer(time = 0) {
    this.text = `时间: ${time} 秒`;
  }
}